* {
    padding: 0;
    margin: 0;
    outline: none;
}
*, :after, :before {
    box-sizing: border-box;
}

body {
    background: #f0f2f5;
}

.page-header {
    padding: 16px 24px;
    background: #ffffff;
}

.layui-container {
    width: 100%;
    padding: 0;
}

.table-content {
    margin: 24px 24px 0;
    background: #ffffff;
}

.table-card-body {
    padding: 24px;
    zoom: 1;
}

.table-tools {
    margin-bottom: 12px;
    text-align: right;
}

tr > td, tr > th {
    padding: 16px 0 !important;
    overflow-wrap: break-word;
}

.layui-table td, .layui-table th, .layui-table-col-set, .layui-table-fixed-r, .layui-table-grid-down, .layui-table-header, .layui-table-page, .layui-table-tips-main, .layui-table-tool, .layui-table-total, .layui-table-view, .layui-table[lay-skin=line], .layui-table[lay-skin=row] {
    border-left-color: transparent;
    border-right-color: transparent;
}

.layui-btn,
.layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color: seagreen;
}

.layui-btn-danger {
    background-color: #FF5722;
}

/*.layui-table-page {*/
/*    background-color: #fff;*/
/*    z-index: 99999;*/
/*    position: fixed;*/
/*    margin: 0 24px;*/
/*    bottom: 0;*/
/*}*/

/*----------------
溯源环节右侧弹出页面
----------------*/
.drawer-right {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}
.drawer-mask {
    width: 100%;
    height: 100%;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
}

.drawer-content-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    width: 600px;
    height: 100%;
    background: white;
    transition: all 0.5s ease;
}

.ant-drawer-header {
    position: relative;
    padding: 16px 24px;
    color: rgba(0,0,0,.65);
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    border-radius: 4px 4px 0 0;
}
.ant-drawer-title {
    margin: 0;
    color: rgba(0,0,0,.85);
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
}
.ant-drawer-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    display: block;
    width: 56px;
    height: 56px;
    padding: 0;
    color: rgba(0,0,0,.45);
    font-weight: 700;
    font-size: 16px;
    font-style: normal;
    line-height: 56px;
    text-align: center;
    text-transform: none;
    text-decoration: none;
    background: transparent;
    border: 0;
    outline: 0;
    cursor: pointer;
    transition: color .3s;
    text-rendering: auto;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #e8e8e8;
    padding: 10px 16px;
    text-align: right;
    left: 0;
    background: #fff;
    border-radius: 0 0 4px 4px;
}

.footer > .cancel-add-template {
    background: none;
}
.ant-drawer-body {
    padding: 24px;
    font-size: 14px;
    line-height: 1.5;
    height: calc(100% - 120px);
    overflow-y: scroll;
    word-wrap: break-word;
}

.ant-btn-dashed {
    color: rgba(0,0,0,.65);
    background-color: #fff;
    border-color: #d9d9d9;
    border-style: dashed;
    display: block;
    width: 100%;
}
.traceRingWrap .addBtn {
    width: 100%;
    margin-top: 16px;
}

.layui-form-label {
    width: 100px;
    text-align: right;
    padding-right: 0;
}

.addItemWrap > .content {
    min-height: 112px;
    vertical-align: middle;
    padding: 15px 85px 10px 28px;
}
.addItemWrap {
    min-height: 112px;
    background: #fff;
    box-shadow: 0 0 10px 0 hsla(0,0%,80.4%,.5);
    border-right: 1px solid rgba(0,0,0,.06);
    position: relative;
    margin-bottom: 8px;
}

.addItemWrap .delete {
    cursor: pointer;
    position: absolute;
    top: 12px;
    right: 0;
    bottom: 12px;
    width: 75px;
    border-left: 1px solid rgba(0,0,0,.06);
    text-align: center;
    font-size: 14px;
    color: #1890ff;
    margin: auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.addItemWrap .header {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 28px;
    background: rgba(0,0,0,.04);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.drawer-select {
    display: block !important;
    width: 100%;
    border-color: #D2D2D2!important;
    padding-left: 10px;
    height: 38px;
    line-height: 1.3;
}


/*-------------
 农产品批次列表
------------*/
.cell-img {
    max-height: 28px;
    width: auto;
}

.new-goods-container .drawer-content-wrapper {
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
}
.new-goods-container .footer {
    position: relative;
}

.new-goods-container .ant-drawer-body {
    overflow: visible;
    height: auto;
}

.new-goods-container .layui-form-label {
    width: 130px;
    padding-left: 0;
}

.new-goods-container .layui-input-block {
    margin-left: 130px;
}

/*-------------
 商品详情
------------*/
.name-title {
    color: black;
}
.name-value {
    color: rgba(0, 0, 0, .65);
}
.layui-col-ncp {
    margin-bottom: 16px;
}

.ncp-normal-info {
    margin-bottom: 20px;
    color: rgba(0,0,0,.85);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
}
.renderNCPInfo.layui-row:first-of-type {
    margin-top: 0;
}
.layui-timeline-axis{
    left: 0;
    color: transparent;
    width: 12px;
    height: 12px;
    border: 3px solid #cccccc;
}
.layui-timeline-item:before {
    width: 2px;
}
.layui-timeline-item:last-of-type:before {
    height: 0;
}

.active .layui-timeline-axis {
    border: 3px solid #5fb878;
}
.noActive .layui-timeline-axis {
    border: 3px solid #cccccc;
}

.back2NCPList {
    cursor: pointer;
}
